/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Interfaces;

/**
 *
 * @author Nestor Giovanny Perez
 */

import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;

public class Construccion extends javax.swing.JPanel {

    /**
     * Creates new form Construccion
     */
    
    private Image imgFondo;
    
    public Construccion() {
         preInit();
        initComponents();
    }

    private void preInit(){
        imgFondo = Toolkit.getDefaultToolkit().getImage(getClass().getResource("/imagenes/construccion.png"));
    }
    
    public void paint(Graphics g){
        if(imgFondo != null){
            g.drawImage(imgFondo,0,0,this);
        }
    }
    
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        setBackground(new java.awt.Color(255, 255, 255));
        setMaximumSize(new java.awt.Dimension(747, 435));
        setMinimumSize(new java.awt.Dimension(747, 435));

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 747, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 435, Short.MAX_VALUE)
        );
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables
}
